package com.example.week9_spring_aop.aspect;

public class ApiInfo {
    int count = 0;
    long totalTime = 0;
    long maxTime = 0;
    long minTime = Long.MAX_VALUE;
    long avgTime = 0;
    long exceptionCount = 0;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public long getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(long totalTime) {
        this.totalTime = totalTime;
    }

    public long getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(long maxTime) {
        this.maxTime = maxTime;
    }

    public long getMinTime() {
        return minTime;
    }

    public void setMinTime(long minTime) {
        this.minTime = minTime;
    }

    public long getAvgTime() {
        return avgTime;
    }

    public void setAvgTime(long avgTime) {
        this.avgTime = avgTime;
    }

    public long getExceptionCount() {
        return exceptionCount;
    }

    public void setExceptionCount(long exceptionCount) {
        this.exceptionCount = exceptionCount;
    }

    @Override
    public String toString() {
        return "ApiInfo{" +
                "count=" + count +
                ", totalTime=" + totalTime +
                ", maxTime=" + maxTime +
                ", minTime=" + minTime +
                ", avgTime=" + avgTime +
                ", exceptionCount=" + exceptionCount +
                '}';
    }
}
